<!DOCTYPE html>

<style>
audio:after,
audio:before {
    display: inline;
    content: no-close-quote;
}
video:after,
video:before {
    display: inline;
    content: no-close-quote;
}
</style>

<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>

<audio controls></audio>

<video controls></video>

<p>Should not crash when ::before or ::after is used on media elements</p>
